package dome1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DickYang
 * Date: 2023-06-29
 * Time: 17:34
 */
public class Poker {
    private String color;
    private int figure;

    public Poker(String color, int figure) {
        this.color = color;
        this.figure = figure;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getFigure() {
        return figure;
    }

    public void setFigure(int figure) {
        this.figure = figure;
    }

    @Override
    public String toString() {
        return "{"+color+" "+figure+"} ";
    }
}
